<?php


namespace app\command;


use app\model\partner\UserPartnerModel;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class ClearPartnerRatio extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('clear_partner_ratio')->setDescription('清空教练转化率 每年一月一号0点执行');
    }

    protected function execute(Input $input, Output $output)
    {
        UserPartnerModel::update(['ratio' => 100], ['id', '>', 0]);
    }
}